package com.beiming.libra.domain.dto.requestdto;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import com.beiming.libra.common.constants.LibraConst;
import com.beiming.libra.common.constants.ValidateMessage;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 手机号
 * 
 * @author weibo
 */
@ApiModel("手机号dto")
@Data
public class MobilePhoneRequestDTO implements Serializable {

  private static final long serialVersionUID = -2623541251595677383L;
  @ApiModelProperty(value = "手机号", required = true)
  @NotBlank(message = ValidateMessage.MOBILE_PHONE_NOT_BLANK)
  @Pattern(regexp = LibraConst.REGEX_MOBILE_EXACT, message = ValidateMessage.MOBILE_PHONE_INCORRECT)
  private String mobilePhone;
}
